/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package percussiongenerator.sound;

import javax.sound.midi.Instrument;
import percussiongenerator.model.TrackCollection;

/**
 *
 * @author Jannes Plyson
 */
public interface IMidiPlayer extends ITimeObservable{
    public Instrument[] getInstruments();
    public void play();
    public void pause();
    public void stop();
    //public void resume();
    public TrackCollection getTrackCollection();
    public void setTrackCollection(TrackCollection trackCollection);
    public boolean isPlayerLoaded();
    public boolean isPlaying();
    public long getTime();
    public void setSoundDelay(long delay);
    public long getSoundDelay();
}
